import {
	RECORD_USERINFO,
	RECORD_ADDRESS,
	SAVE_GEOHASH,
} from './mutations-types.js'


export default {
	[RECORD_USERINFO](state, info){  //获取用户口信息
		state.userInfo = info
		setStore('user_id', info.user_id);
	},
	[RECORD_ADDRESS](state,{latitude,longitude}){ // 记录当前经度纬度
		state.latitude = latitude;
		state.longitude = longitude;
	},
	[SAVE_GEOHASH](state,geohash){
		state.geohash = geohash
	}
}